﻿function change() {
    var height = $(document).height();
    $(".resource").css("height", height - 36 + "px");
}
//查看
$("#Dossier_my").click(function () {

    window.location.href = "/Resource/Uploads/abc.txt";
    window.open("/Resource/Uploads/abc.txt")

})
//下载
$("#take").click(function () {
    var path = $("input[type='radio']:checked").val();
    //alert(path)
    var link = document.createElement('a');
    link.setAttribute("download", path);
    link.href = '/Resource/Uploads/' + path + "";
    link.click();
})
///删除
$("#del").click(function () {
    var OptionId = $("input[type='radio']:checked");
    OptionId.val(function () {
        option_id = this.id;//赋值

    })
    if (option_id != null) {
        $.ajax({
            type: "post",
            url: "/Dossier_my/Del?id=" + option_id,
            success: function (responseResult) {
                if (responseResult.success) {
                    alert("成功!");
                } else {
                    alert("失败!");
                }
            }
        })
    }

})

//   window.location.href="/Resource/Uploads/JinJun.YShowReception.DAL.csproj";

